﻿/*
 * Created by SharpDevelop.
 * User: CrOnO
 * Date: 24/10/2011
 * Time: 12:23 p.m.
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections;
using System.Collections.Generic;
using Business_Entity;
using DAOFactory;

namespace Business_Logic
{
	/// <summary>
	/// Description of BLArea.
	/// </summary>
	public class BLCargo
	{
		List<BECargo> listaCargo;
		
		public BLCargo()
		{
			listaCargo = new List<BECargo>();
		}
		
		public List<BECargo> obtenerCargo(String area)
		{
			DAOAreaCargo dao = new DAOAreaCargo();
			
			List<BECargo> resultado = dao.completarCargo(area);
			this.listaCargo = resultado;
			
			return listaCargo;
		}
		
		public List<BECargo> ListaCargo
		{
			get { return listaCargo; }
			set { listaCargo = value; }
		}
	}
}